import java.util.Scanner;

public class avg {
    public static void main(String args[]){
        double sum=0;
        double avg=0;
        Scanner input=new Scanner(System.in);
        double scores[]=new double[5];
        for(int i=0;i<scores.length;i++){
            System.out.println("请输入第"+(i+1)+"个学生的成绩");
            scores[i]=input.nextDouble();
        }
        for(int i=0;i<scores.length;i++){
            sum+=scores[i];
        }

        avg=sum/scores.length;
        System.out.println("平均分："+avg);

    }
}
